﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wyse.Server.Game
{
    /// <summary>
    /// Represents a player token
    /// </summary>
    public class PlayerToken
    {
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="player"></param>
        /// <param name="game"></param>
        public PlayerToken(PlayerState player, GameManager game)
        {
            Player = player;
            Table = game;

            ID = Guid.NewGuid();
        }

        /// <summary>
        /// Gets the associated player state
        /// </summary>
        public PlayerState Player
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the associated table
        /// </summary>
        public GameManager Table
        {
            get;
            private set;
        }

        /// <summary>
        /// Returns the token ID
        /// </summary>
        public Guid ID
        {
            get;
            private set;
        }
    }
}
